package cn.tedu.tmall.admin.content.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class CategoryAddParam {
    @ApiModelProperty(required = true,example = "资讯",dataType = "String")
    @NotBlank(message = "分类名不能为空-byBlank")
//    @Size(min = 1,max = 4,message = "分类名长度为1~4-bySize")
    @Length(min = 1,max = 4,message = "分类名长度为1~4-byLength")
//    @Range(min = 1,max = 1000,message = "取值范围为1~1000-byRange")
    String name;
}
